Alibabacloud.com offers a wide variety of articles about android scan bluetooth devices, easily find your android scan bluetooth devices information here online.
1. Modify the visibility of the local Bluetooth device
2. Scan the available Bluetooth devices around
Eg:
I. configuration file adroidmanifest. xml:
Ii. layout file: Main. xml:
3. mainactivity:
Import android. app. activity; import
void OnClick (View v) {
//Get Bluetoothadapter object, this API is supported by Android 2.0
Bluetoothadapter adapter = Bluetoothadapter.getdefaultadapter ();
//adapter is not equal to NULL, indicating that this machine has a Bluetooth device
if (adapter! = null) {
System.out.println ("This machine has Bluetooth device!");
//If the
1. What is Bluetooth )?
1.1 buletooth is the most widely used wireless communication protocol.
1.2 mainly for short-range device communication (10 m)
1.3 is usually used to connect headphones, mouse, and mobile communication devices.
2. Bluetooth-related APIs
2.1 define thadapter:
Represents the local Bluetooth ad
Android devices can be used in addition to the Internet through WiFi hotspots, but also through the Bluetooth share of the Internet, the latter feature few people to use, but for a device without WiFi but the situation of Bluetooth.
First, set wt19i, System settings "wireless connection" network sharing open
How does android modify the maximum number of Bluetooth search devices?
In this file, modify the following parameters of the function:
Bool btmtk_gap_discovery (native_data_t * nat, btbm_discovery_type mode){...Req_p-> inquiry_number = 25; // the number can be modify less than 25
Android
1. bluetooth pairing, connecting the deviceTurn on system settings, locate Bluetooth, open the sweep gun, and pair the scanner device. Enter a fixed pairing code, usually written in the Manual of the Scanner gun. After pairing is complete, the display device is connected. Just OK.Configure permissions in 2.AndroidManifestAdd Bluetooth permissions to the Androidma
Debug mobile phone and watch devices simultaneously using Bluetooth in Android Wear Development
During the development of Android Wear applications, you must simultaneously operate watches and mobile phones. You can simultaneously operate mobile phones and watches through Bluetoot
During the development of the Android Wear application, both the watch and the phone need to be operated simultaneously, and the phone and watch can be operated simultaneously via Bluetooth.1 turn on the watch and phone's debug settingsTurn on USB debugging for your phoneOpen the developer option for the Watch settings, check debug over Bluetooth if it is the fir
If the local Bluetooth device can be found by other nearby bluetooth devices, you can use the following method with comments in the code.
Of course, you need to set up your Bluetooth device to be detected by nearby bluetooth devices
Original URL: http://www.2cto.com/kf/201303/199175.htmlThe minimum Bluetooth required version is android2.0, and since the Android emulator does not support Bluetooth, apps running Bluetooth must be tested on the real machine.Bluetooth is an important short-range wireless communication protocol, widely used in a variet
How to Use Android Bluetooth (Bluetooth details) and Android bluetoothI. Communication between bluetooth devices consists of four processes.
Configure a bluetooth device to search for
Android Bluetooth Low Energy (Android Low-power Bluetooth)
Android 4.3 (API Level 18) has introduced core functions of Bluetooth Low Energy (BLE, Low-power Bluetooth) and provided relev
What is Bluetooth??? It can also be said that Bluetooth technology. The so-called Bluetooth technology, actually a short-range radio technology, was invented by Ericsson company. The use of "Bluetooth" technology can effectively simplify communication between mobile devices
Android 4.3 (API level 18) has started to introduce the core features of Bluetooth low energy (BLE, Bluetooth) and provides APIs that enable applications to scan devices, query services, The characteristics (attribute feature) of the read-write device. Compared to traditiona
, published on December 2, 2014 (until March 22, 2016)9. Each device has a unique 48-bit address.However, these addresses are not displayed in the connection request.However, users can name their Bluetooth device (Bluetooth device name), which can be displayed in the scan results and paired devices list of other
Oncharacteristicwrite gatt.wirteCharacteristic(mCurrentcharacteristic);
Connect bluetooth or disconnect bluetooth onconnectionstatechange
Readdescriptor corresponds to Ondescriptorread;
Writedescriptor corresponds to Ondescriptorwrite;gatt.writeDescriptor(descriptor);
Readremoterssi Correspondence Onreadremoterssi gatt.readRemoteRssi()
Executereliablewrite corresponds to onreliablewritecomplete
March 22, 2016)9. Each device has a unique 48-bit address. However, these addresses are not displayed in the connection request. However, the user can name his Bluetooth device (the Bluetooth device name), which is displayed in the scan results and paired devices list of other dev
The following definitions come from bluetooth.org
connectable Device:
A Bluetooth device in range this periodically listens on its page scan physical channel and'll respond to a page on Channel
Discoverable Device:
A Bluetooth device in range this periodically listens on A Inquiry scan physical channel and would respon
How to use Bluetooth with Android Bluetooth (details)I. Communication between bluetooth devices involves four steps
Set the bluetooth device to find data transmission between devices th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.